import { postService } from '.'
import { PORT1 } from '../config/net.config'
import { Procure } from './interface/procure'

// 新增仓库
export const createStoreHouseAPI = (params: Procure.StoreHouse) => {
  return postService<null>(`${PORT1}/CoreCmsStorehouse/DoCreate`, params, 'json')
}
// 编辑仓库
export const editStoreHouseAPI = (params: Procure.StoreHouse) => {
  return postService<null>(`${PORT1}/CoreCmsStorehouse/DoEdit`, params, 'json')
}
// 删除仓库
export const deleteStoreHouseAPI = (params: { id: string }) => {
  return postService<null>(`${PORT1}/CoreCmsStorehouse/DoBatchDelete`, params, 'json')
}
